package com.itic.codeGen.codeGenerator.workLine.implement;

import java.util.ArrayList;
import java.util.List;

import com.itic.codeGen.codeGenerator.util.CommonUtils;
import com.itic.codeGen.codeGenerator.util.CommonUtils.FILE_TYPE;
import com.itic.codeGen.codeGenerator.workLine.PartGenerator;

public class XmlGenerator implements PartGenerator {
    private String packageName;
    private String domainName;
    private String XMLName;
    private String tableName;

    public XmlGenerator(String packageName, String domainName, String tableName) {
	super();
	this.packageName = packageName;
	this.domainName = domainName;
	this.tableName = tableName;
    }

    @Override
    public List<String> getImports() {

	return null;
    }

    @Override
    public List<String> getHeaders() {

	return null;
    }

    @Override
    public String getExtend() {

	return null;
    }

    @Override
    public List<String> getImplement() {

	return null;
    }

    @Override
    public List<String> getBody() {
        List<String> sqls = new ArrayList<String>();
        //sqls.add(...);
	return sqls;
    }
    
    @Override
    public String getXMLName() {
	XMLName = CommonUtils.packageFomatter(packageName, FILE_TYPE.DAO)
	        + CommonUtils.PKG_SPLITER + domainName
	        + FILE_TYPE.DAO.getType();
	return XMLName;
    }

    public String getPackageName() {
	return packageName;
    }

    public void setPackageName(String packageName) {
	this.packageName = packageName;
    }

    public String getDomainName() {
	return domainName;
    }

    public void setDomainName(String domainName) {
	this.domainName = domainName;
    }

    public void setXMLName(String xMLName) {
	XMLName = xMLName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
    
    
}
